﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

#pragma once

#include "GcmpModelInterface.h"
namespace gcmp {

    class IElement;
    class IDocument;

    /// \brief 对象模块相关工具类
    class GCMP_MODEL_INTERFACE_EXPORT ElementModuleGroupUtils
    {
    public:
        /// \brief 获取文档中所有该模块的对象
        /// \para pDoc 文档指针
        /// \para moduleGroupGuid 模块Guid
        /// \return 文档中所有该模块的对象
        /// \see IModuleGroupManager.h
        static std::vector<IElement*> GetAllElementsByModuleGroupInDoc(const IDocument* pDoc, const Guid& moduleGroupGuid);

    };
}
